﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ross.Service.Dto
{
    public class LoginVM
    {
        public string username { get; set; }
        public string password { get; set; }
    }

    public class Users
    {
        public long ID { get; set; }
        public string UserName { get; set; }
        public string EmpName { get; set; }
        public string Email { get; set; }
        public string Telphone { get; set; }
        public string GroupName { get; set; }
        public string EmpID { get; set; }
        public decimal Points { get; set; }
        public bool InActive { get; set; }
        public string CommentText { get; set; }
        public DateTime CreateTime { get; set; } = DateTime.Now;
        public string Role { get; set; }      
        public decimal StudyTimes { get; set; }
    }

    public class UptPsw
    {
        public long UserId { get; set; }
        public string OrgPassword { get; set; }
        public string Password { get; set; }
    }

    public class Course {
        //自增长ID
        public long ID { get; set; }
        //标题
        public string Title { get; set; }
        //副标题
        public string Intro { get; set; }
        //评分
        public int Rate { get; set; }
        //课程分类ID
        public string[] ClassID { get; set; }
        //课程类型
        public string CType { get; set; }
        //视频地址
        public string VedioURL { get; set; }
        //图片地址
        public string ImgURL { get; set; }
        //课件地址
        public string FileURL { get; set; }
        //无效
        public bool InActive { get; set; }
        //课程内容
        public string Contents { get; set; }
        //讲师ID
        public int UserID { get; set; }
        //讲师名称
        public string UserName { get; set; }
        //报名人数
        public int SignNum { get; set; }
        //起始时间
        public string[] DateRange { get; set; }
        public decimal Points { get; set; }
        public decimal Times { get; set; }
    }
    public class CourseClass {
        //自增长ID
        public long ID { get; set; }
        //分类名称
        public string ClassName { get; set; }
        //分类索引
        public string ClassIndex { get; set; }
        //父级ID
        public int ParentID { get; set; }
        //层级
        public int Lev { get; set; }
        //备注
        public string CommentText { get; set; }
    }
    public class Courseware {
        //自增长ID
        public int ID { get; set; }
        //课件地址
        public string FileURL { get; set; }
        //课件标题
        public string Title { get; set; }
        //课件类型
        public string DocType { get; set; }
        //所属课程
        public long CourseID { get; set; }
        //上传时间
        public DateTime CreateTime { get; set; }
        //作者
        public string Author { get; set; }
    }
    public class ExamDB {
        public int ID { get; set; }
        /// <summary>
        /// 题库标题
        /// </summary>
        public string ExamTitle { get; set; }

        /// <summary>
        /// 分类名称
        /// </summary>
        public string ClassName { get; set; }
        /// <summary>
        /// 题目类型
        /// </summary>
        public string ExamType { get; set; }
        /// <summary>
        /// 题库内容
        /// </summary>
        public string ExamContent { get; set; }
        /// <summary>
        /// 发布者ID
        /// </summary>
        public long UserID { get; set; }
        public bool IsHot { get; set; }
        public decimal Points { get; set; }
        /// <summary>
        /// 参考答案
        /// </summary>
        public string ExamAnswer { get; set; }
    }
    public class FAQs {
        public int ID { get; set; }
        /// <summary>
        /// 问题标题
        /// </summary>
        public string AskTitle { get; set; }
        /// <summary>
        /// 提问时间，默认当前时间
        /// </summary>
        public DateTime AskTime { get; set; } = DateTime.Now;
        /// <summary>
        /// 问题内容
        /// </summary>
        public string AskContent { get; set; }
        /// <summary>
        /// 回答内容
        /// </summary>
        public string AnswerContent { get; set; }
        /// <summary>
        /// 提问用户ID
        /// </summary>
        public long UserID { get; set; }
        /// <summary>
        /// 导师ID
        /// </summary>
        public long TeacherID { get; set; }
        /// <summary>
        /// 是否解决
        /// </summary>
        public bool IsClosed { get; set; } = false;
        /// <summary>
        /// 所属课程
        /// </summary>
        public long CourseID { get; set; }
    }
    public class AnswerObj
    {
        public int ID { get; set; }
        /// <summary>
        /// 回答内容
        /// </summary>
        public string AnswerContent { get; set; }
    }
    public class Notes {
        //自增长ID
        public int ID { get; set; }
        //笔记内容
        public string Contents { get; set; }
        //所属课程
        public long CourseID { get; set; }
        //上传时间
        public DateTime CreateTime { get; set; } = DateTime.Now;
        //用户ID
        public long UserID { get; set; }
    }
    public class Comments {
        //自增长ID
        public long ID { get; set; }
        //创建时间
        public DateTime CreateTime { get; set; } = DateTime.Now;
        //评论内容
        public string Contents { get; set; }
        //课程ID
        public long CourseID { get; set; }
        //用户ID
        public long UserID { get; set; }
        //用户名称
        public string UserName { get; set; }
    }

    public class Signs
    {
        //自增长ID
        public long ID { get; set; }
        //创建时间
        public DateTime SignTime { get; set; } = DateTime.Now;
        //课程ID
        public long CourseID { get; set; }
        //用户ID
        public long UserID { get; set; }
        //用户名称
        public string UserName { get; set; }
        //课程标题
        public string CourseTitle { get; set; }
        public bool IsOver { get; set; }
    }
    public class ReturnDto<T>
    {
        public int status { get; set; } = 200;
        public string message { get; set; } = "ok";
        public int pages { get; set; }
        public int total { get; set; }
        public T datas { get; set; }
    }

    public class FileObj
    {
        public string uid { get; set; }
        public string name { get; set; }
        public string status { get; set; } = "done";
        public string url { get; set; }
        public string thumbUrl { get; set; }
    }
}
